/*
 * @Description: 四期项目
 */

/**
 * 自营商品管理
 */

// 自营商品审核（大区）
const proprietaryGoodsCheck = (r) => require.ensure([], () => r(require('@/page/proprietaryGoods/check')), 'proprietaryGoodsCheck');
// 自营商品管理（商家端）
const proprietaryGoodsMng = r => require.ensure([], () => r(require('@/page/proprietaryGoods/manage')), 'proprietaryGoodsMng');
// 自营商品管理编辑/详情（商家端）
const proprietaryGoodsEdit = (r) => require.ensure([], () => r(require('@/page/proprietaryGoods/edit')), 'proprietaryGoodsEdit');
// 自营商品详情
const proprietaryGoodsDetail = (r) => require.ensure([], () => r(require('@/page/proprietaryGoods/detail')), 'proprietaryGoodsDetail');
// 自营商品订单
const proprietaryGoodsOrder = (r) => require.ensure([], () => r(require('@/page/proprietaryGoods/order')), 'proprietaryGoodsOrder');
// 自营商品订单详情
const proprietaryGoodsOrderDetail = (r) => require.ensure([], () => r(require('@/page/proprietaryGoods/orderDetail')), 'proprietaryGoodsOrderDetail');

// 消费者兑换商品管理
const goodsExchangeConsumer = (r) => require.ensure([], () => r(require('@/page/goodsExchange/consumer')), 'goodsExchangeConsumer');
// 商家兑换商品管理
const goodsExchangeMerchant = (r) => require.ensure([], () => r(require('@/page/goodsExchange/merchant')), 'goodsExchangeMerchant');
// 兑换商品新增/编辑
const goodsExchangeEdit = (r) => require.ensure([], () => r(require('@/page/goodsExchange/goodsEdit')), 'goodsExchangeEdit');
// 兑换商品详情
const goodsExchangeDetail = (r) => require.ensure([], () => r(require('@/page/goodsExchange/goodsDetail')), 'goodsExchangeDetail');
// 兑换商品分类
const exchangeCategory = (r) => require.ensure([], () => r(require('@/page/goodsExchange/category')), 'exchangeCategory');

// 云币/酒币明细
const cloudCoinDetail = (r) => require.ensure([], () => r(require('@/page/memberManagement/coinDetail')), 'cloudCoinDetail');
// 商家会员档案
const merchantMemberArchives = (r) => require.ensure([], () => r(require('@/page/memberManagement/merchantMember')), 'merchantMemberArchives');
// 批量赠送列表
const batchSendMerchantMember = (r) => require.ensure([], () => r(require('@/page/memberManagement/batchSendMerchantMember')), 'batchSendMerchantMember');
// 商家兑换订单
const merchantExchangeOrder = (r) => require.ensure([], () => r(require('@/page/orderManage/merchantExchangeOrder')), 'merchantExchangeOrder');
// 消费者兑换订单
const consumerExchangeOrder = (r) => require.ensure([], () => r(require('@/page/orderManage/consumerExchangeOrder')), 'consumerExchangeOrder');
// 兑换订单详情
const exchangeOrderDetail = (r) => require.ensure([], () => r(require('@/page/orderManage/exchangeOrderDetail')), 'exchangeOrderDetail');

// 系统配置
const systemConfig = (r) => require.ensure([], () => r(require('@/page/systemConfig/index')), 'systemConfig');

// 大区端的优惠券管理页面
const regionCoupon = r => require.ensure([], () => r(require('@/page/coupon/regionCoupon')), 'regionCoupon');
// 商家端的优惠券管理页面
const merchantCoupon = r => require.ensure([], () => r(require('@/page/coupon/merchantCoupon')), 'merchantCoupon');
// 大区库存审核
const stockAudit = r => require.ensure([], () => r(require('@/page/stockAudit/index')), 'stockAudit');

// 自主直播审核
const selfLiveAudit = r => require.ensure([], () => r(require('@/page/live/selfLiveAudit')), 'selfLiveAudit');

export const goodsRouters = [
  {
    path: '/proprietaryGoodsCheck',
    name: 'proprietaryGoodsCheck',
    component: proprietaryGoodsCheck,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/proprietaryGoodsMng',
    name: 'proprietaryGoodsMng',
    component: proprietaryGoodsMng,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/proprietaryGoodsEdit',
    name: 'proprietaryGoodsEdit',
    component: proprietaryGoodsEdit,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/proprietaryGoodsDetail',
    name: 'proprietaryGoodsDetail',
    component: proprietaryGoodsDetail,
    meta: {
      requireAuth: true
    }
  },
  {
    path: '/proprietaryGoodsOrder',
    name: 'proprietaryGoodsOrder',
    component: proprietaryGoodsOrder,
    meta: {
      requireAuth: true
    }
  },
  {
    path: '/proprietaryGoodsOrderDetail',
    name: 'proprietaryGoodsOrderDetail',
    component: proprietaryGoodsOrderDetail,
    meta: {
      requireAuth: true
    }
  },
  {
    path: '/goodsExchangeConsumer',
    name: 'goodsExchangeConsumer',
    component: goodsExchangeConsumer,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/goodsExchangeEdit',
    name: 'goodsExchangeEdit',
    component: goodsExchangeEdit,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/goodsExchangeDetail',
    name: 'goodsExchangeDetail',
    component: goodsExchangeDetail,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/goodsExchangeMerchant',
    name: 'goodsExchangeMerchant',
    component: goodsExchangeMerchant,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/exchangeCategory',
    name: 'exchangeCategory',
    component: exchangeCategory,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/cloudCoinDetail',
    name: 'cloudCoinDetail',
    component: cloudCoinDetail,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/merchantMemberArchives',
    name: 'merchantMemberArchives',
    component: merchantMemberArchives,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/batchSendMerchantMember',
    name: 'batchSendMerchantMember',
    component: batchSendMerchantMember,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/merchantExchangeOrder',
    name: 'merchantExchangeOrder',
    component: merchantExchangeOrder,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: '/consumerExchangeOrder',
    name: 'consumerExchangeOrder',
    component: consumerExchangeOrder,
    meta: {
      requireAuth: true
    }
  },
  {
    path: '/exchangeOrderDetail',
    name: 'exchangeOrderDetail',
    component: exchangeOrderDetail,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/systemConfig',
    name: 'systemConfig',
    component: systemConfig,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/regionCoupon',
    name: 'regionCoupon',
    component: regionCoupon,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/merchantCoupon',
    name: 'merchantCoupon',
    component: merchantCoupon,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/stockAudit',
    name: 'stockAudit',
    component: stockAudit,
    meta: {
      requireAuth: true,
    }
  },
  {
    path: '/selfLiveAudit',
    name: 'selfLiveAudit',
    component: selfLiveAudit,
    meta: {
      requireAuth: true,
    }
  }
];
